// 调用 trpc 的客户端

import { createTRPCProxyClient, httpBatchLink } from '@trpc/client';
import { type TestRouter } from './server';

export const trpcClient = createTRPCProxyClient<TestRouter>({
  links: [
    httpBatchLink({
      url: 'http://localhost:9000/api/trpc',
    }),
  ],
});
